import request from '@/utils/request'

// 查询公告列表
export function listPos(query) {
  return request({
    url: '/system/pos/list',
    method: 'get',
    params: query
  })
}


export function addPos(form) {
  return request({
    url: '/system/pos',
    method: 'post',
    data: form
  })
}


export function updatePos(form) {
  return request({
    url: '/system/pos',
    method: 'put',
    data: form
  })
}


export function deletePos(ids) {
  return request({
    url: '/system/pos/'+ids,
    method: 'delete'
  })
}
